import requestModel from '@/utils/request-model'
import { useModelStore } from '@/stores/model'

// 获取样例图片（blob）
export const getLkdExample = (num) => {
  const modelStore = useModelStore()
  return requestModel({
    url: modelStore.modelInfo.serverUrl + '/example/' + num,
    method: 'get',
    responseType: 'blob'
  })
}

// 获取结果图片（blob）
export const getLkdResult = (num) => {
  const modelStore = useModelStore()
  return requestModel({
    url: modelStore.modelInfo.serverUrl + '/result/' + num,
    method: 'get',
    responseType: 'blob'
  })
}